package com.servers.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.InformationDao;
import com.entity.Information;
import com.servers.InformationServers;
@Service("informationService")
public class InformationServersImpl implements InformationServers {
	@Autowired
	private InformationDao informationDao;
	@Override
	public List<Information> getAllInfomation() {
		
		return informationDao.QueryAllInfomations();
	}
	@Override
	public Information getInfomation(String name) {
		
		return informationDao.QueryInfomationsByName(name);
	}

}
